python print也支持参数格式化,与C言的printf似, strHello = "the length of (%s) is %d" % ('Hello World', len ... 如果需要输出二进制的话,可以使用python函数 bin() Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win 32 Type "help ...